package com.example.book_recommend.service;

import com.example.book_recommend.entity.*;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

public interface UserService {
    User userLogin(User user);
    int userRegister(User user);
    User findUserByUsername(String username);
    boolean verifyToken(String username);
    boolean passwordVerify(String password,String username);
    boolean changeUserInfo(User user);

    List<User> getUserByPage(Integer page, Integer size);

    int countNumber();

    ArrayList<Orders> viewOrders(int uid);

    OrderDetail viewDetailedOrders(String  orderId);

    ArrayList<HashMap> getBookTypeNum();

    ArrayList<HashMap> getAgeScopeNum();

    User getUserInfo(int uid);

    Boolean changePassword(int uid, String password);

    ArrayList<BookInfo> recommend1(Long bookId, int page, int size);

    ArrayList<BookInfo> recommend2(Long bookId, int page, int size);

    ArrayList<BookInfo> recommendFake(int uid, int page, int size);
}
